﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Wms;
using nERP.Model;
using nERP.Model.So;
using nERP.Model.Bas;

namespace nERP.ViewModel.Wms.SaleOutWarehouseDetailVMs
{
    public partial class SaleOutWarehouseDetailTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._SaleOutWarehouseDetail._SaleOutWarehouse")]
        public ExcelPropety SaleOutWarehouse_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.SaleOutWarehouseId);
        [Display(Name = "_Model._SaleOutWarehouseDetail._SaleOutWarehouseDetailCode")]
        public ExcelPropety SaleOutWarehouseDetailCode_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.SaleOutWarehouseDetailCode);
        [Display(Name = "_Model._SaleOutWarehouseDetail._Sale")]
        public ExcelPropety Sale_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.SaleId);
        [Display(Name = "_Model._SaleOutWarehouseDetail._SaleDetail")]
        public ExcelPropety SaleDetail_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.SaleDetailId);
        [Display(Name = "_Model._SaleOutWarehouseDetail._Goods")]
        public ExcelPropety Goods_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.GoodsId);
        [Display(Name = "_Model._SaleOutWarehouseDetail._GoodsName")]
        public ExcelPropety GoodsName_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.GoodsName);
        [Display(Name = "_Model._SaleOutWarehouseDetail._GoodsSpec")]
        public ExcelPropety GoodsSpec_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.GoodsSpec);
        [Display(Name = "_Model._SaleOutWarehouseDetail._GoodsUnit")]
        public ExcelPropety GoodsUnit_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.GoodsUnit);
        [Display(Name = "_Model._SaleOutWarehouseDetail._Warehouse")]
        public ExcelPropety Warehouse_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.WarehouseId);
        [Display(Name = "_Model._SaleOutWarehouseDetail._SaleOutNumber")]
        public ExcelPropety SaleOutNumber_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.SaleOutNumber);
        [Display(Name = "_Model._SaleOutWarehouseDetail._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.Remark);
        [Display(Name = "_Model._SaleOutWarehouseDetail._Seq")]
        public ExcelPropety Seq_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.Seq);
        [Display(Name = "_Model._SaleOutWarehouseDetail._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.Status);
        //[Display(Name = "_Model._SaleOutWarehouseDetail._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.CreateTime, true);
        //[Display(Name = "_Model._SaleOutWarehouseDetail._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._SaleOutWarehouseDetail._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.CreateBy);
        //[Display(Name = "_Model._SaleOutWarehouseDetail._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.UpdateBy);
        //[Display(Name = "_Model._SaleOutWarehouseDetail._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<SaleOutWarehouseDetail>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class SaleOutWarehouseDetailImportVM : BaseImportVM<SaleOutWarehouseDetailTemplateVM, SaleOutWarehouseDetail>
    {
            //import

    }

}